package com.zhf.educommentboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhf.eduapi.entity.CourseCommentFavoriteRecord;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2021/2/16 12:59
 */
public interface CourseCommentFavoriteRecordDao extends BaseMapper<CourseCommentFavoriteRecord> {

    @Select({"select * from course_comment_favorite_record where comment_id = #{comment_id}"})
    List<CourseCommentFavoriteRecord> findByCommentid(Integer comment_id);
}
